body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

#app {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

#sidebar {
    width: 250px;
    background-color: #2a2a2a;
    padding: 20px;
    transition: width 0.3s;
}

#sidebar h1 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

#sidebar ul {
    list-style-type: none;
    padding: 0;
}

#sidebar li {
    margin-bottom: 10px;
}

#sidebar a {
    text-decoration: none;
    color: #b0b0b0;
    transition: color 0.3s;
}

#sidebar a:hover {
    color: #ffffff;
}

#content {
    flex-grow: 1;
    padding: 20px;
}

h2 {
    color: #ffffff;
    margin-bottom: 20px;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
}

input,
button,
select {
    margin-top: 10px;
    background-color: #3a3a3a;
    color: #e0e0e0;
    border: 1px solid #4a4a4a;
    padding: 8px 12px;
    border-radius: 4px;
}

input,
button,
select,
textarea {
    margin-top: 10px;
    background-color: #3a3a3a;
    color: #e0e0e0;
    border: 1px solid #4a4a4a;
    padding: 8px 12px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button {
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #4a4a4a;
}

section {
    margin-bottom: 30px;
}

.hidden {
    display: none;
}

#realm-tags,
#monster-list,
#item-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.realm-tag,
.monster-tag {
    background-color: #3a3a3a;
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.realm-tag span:first-child,
.monster-tag span:first-child {
    margin-right: 8px;
}

.delete-btn {
    cursor: pointer;
    font-weight: bold;
    color: #b0b0b0;
    opacity: 0;
    transition: opacity 0.3s;
}

.realm-tag:hover .delete-btn,
.monster-tag:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    color: #ff4d4d;
}

.add-realm,
.add-monster,
.add-item {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.add-realm input,
.add-monster input,
.add-item input,
.add-item select {
    flex: 1 1 200px;
}

.add-realm button,
.add-monster button,
.add-item button {
    flex: 0 0 auto;
}

#item-list li {
    background-color: #3a3a3a;
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#item-list li:hover {
    background-color: #4a4a4a;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #2a2a2a;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 4px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
}

.delete-item-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.delete-item-btn:hover {
    background-color: #ff3333;
}

#login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1a1a1a;
}

#login-form {
    background-color: #2a2a2a;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
}

#login-form h2 {
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

#login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #3a3a3a;
    background-color: #333333;
    color: #ffffff;
    border-radius: 4px;
}

#login-form button {
    width: 100%;
    padding: 10px;
    background-color: #4a4a4a;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#login-form button:hover {
    background-color: #5a5a5a;
}
